path:%ROCKETMQ_HOME%\bin

ROCKETMQ_HOME: F:\java_code\rocketmq-all-4.6.0-bin-release\rocketmq-all-4.6.0-bin-release
start mqnamesrv.cmd
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true
start mqbroker.cmd -n 127.0.0.1:9876 -c ../conf/broker.conf autoCreateTopicEnable=true

mqadmin topicList -n 127.0.0.1:9876
mqadmin printMsg -n 127.0.0.1:9876 -t Victor

broker.conf中添加，修改存储位置
#存储路径
storePathRootDir=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store

#commitLog存储路径
storePathCommitLog=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store/commitlog

#消费队列存储路径
storePathConsumeQueue=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store/consumequeue

#消息索引存储路径
storePathIndex=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store/index

#checkpoint 文件存储路径
storeCheckpoint=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store/checkpoint

#abort 文件存储路径
abortFile=F:/java_code/rocketmq-all-4.6.0-bin-release/rocketmq-all-4.6.0-bin-release/store/abort
